//
//  CommonHeader.h
//  ZiJinLian
//
//  Created by lc on 2017/3/20.
//  Copyright © 2017年 lzy. All rights reserved.
//

#ifndef CommonHeader_h
#define CommonHeader_h
/**
  api
 
 */

//枚举
typedef enum{
    wechat,
    QQlogin,
    
}setType;


#pragma mark--------------默认数据----------------
static NSString* const DEFAULT_NICKNAME=@"诚心的居士";
#pragma mark--------------服务器通用字段----------------
static NSString* const DATA=@"data";
static NSString* const STATUS= @"status";




#pragma mark--------------登录信息相关字段----------------
static NSString* const MONEY=@"money";//钱包金额
static NSString* const ISLOGIN=@"isLogin";//是否登录
static NSString* const DEALER_GRADE=@"dealerGrade";//0为普通用户,其他为经销商等级
static NSString* const AVATAR=@"avatar";//头像
static NSString* const USER_ID=@"userId";//用户id
static NSString* const TOKEN=@"token";//token
static NSString* const NICK_NAME=@"nickname";//昵称
static NSString* const GENDER=@"gender";//性别
static NSString* const PHONE=@"phone";//电话
static NSString* const IMNAME=@"imUsername";//性别
static NSString* const IMPASSWORD=@"imPassword";//电话
static NSString* const WECHATBIND=@"wechatBind";//微信
static NSString* const QQBIND=@"qqBind";//QQ
static NSString* const KEY_LIGON_USER_INFO=@"loginUserInfo";





#pragma mark--------------通用相关----------------
static NSString* const API_AREA=@"/api/common/area";
#pragma mark--------------地址相关----------------
static NSString* const API_ADD_ADDRESS=@"/api/member/address/add";
static NSString* const API_EDIT_ADDRESS=@"/api/member/address/change";
static NSString* const API_REMOVE_ADDRESS=@"/api/member/address/remove";
static NSString* const API_SETDEFAULT_ADDRESS=@"/api/member/address/toDefault";

#pragma mark--------------密码相关----------------
static NSString* const API_FIND_PSW=@"/api/member/setting/getPassword";

#pragma mark--------------修改密码----------------
static NSString* const API_changePassword=@"/api/member/setting/changePassword";



#pragma mark--------------验证相关----------------
static NSString* const API_CHECK_SMS=@"/api/validation/check/sms";
static NSString* const  API_CHECK_PHONE =@"/api/validation/check/phone";
static NSString* const API_SEND_SMS=@"/api/validation/captcha/sms";
static NSString *const API_IMG_LOGIN=@"/api/validation/captcha/image";

#pragma mark--------------搜索相关----------------
static NSString* const API_SearchCate=@"/api/item/search";

#pragma mark--------------搜索相关----------------
static NSString* const API_Search=@"/api/item/search/info";


#pragma mark--------------登陆相关----------------
static NSString* const API_LOGIN=@"/api/validation/login";
static NSString* const API_USER=@"/api/member/setting";
static NSString* const API_EDITDMINE=@"/api/member/setting/info";
static NSString* const API_QQLOGIN=@"/api/validation/login/qq";
static NSString* const API_WECHATLOGIN=@"/api/validation/login/wechat";

#pragma mark--------------QQ账户短信绑定----------------
static NSString* const API_QQLOGINbinding=@"/api/validation/login/sms/bind/qq";
#pragma mark--------------微信 短信绑定---------------
static NSString* const API_WechatLOGINbinding=@"/api/validation/login/sms/bind/wechat";
#pragma mark--------------QQ账户密码绑定----------------
static NSString* const API_QQWORDbinding=@"/api/validation/login/password/bind/qq";
#pragma mark--------------微信 密码绑定---------------
static NSString* const API_WechatWORDbinding=@"/api/validation/login/bind/wechat";
#pragma mark--------------QQ解除绑定----------------
static NSString* const API_QQREMOVEBIND=@"/api/validation/login/unbind/qq";
#pragma mark--------------微信 解除绑定---------------
static NSString* const API_WechatREMOVEBIND=@"/api/validation/login/unbind/wechat";


#pragma mark--------------注册相关----------------
static NSString* const API_REGIST=@"/api/validation/register";

#pragma mark--------------收货地址相关----------------
static NSString* const API_ADDRESS_LIST=@"/api/member/address/list";

#pragma mark--------------分类一级列表--------------
static NSString *const API_FIRSTCLASS_LIST=@"/api/item/cate/first";

#pragma mark--------------分类二三级列表--------------
static NSString *const API_SECONDCLASS_LIST=@"/api/item/cate/main";
#pragma mark--------------获取属性--------------
static NSString *const API_SHOPCLASS_LIST=@"/api/products/attr/list";
#pragma mark--------------筛选排序--------------
static NSString *const API_filterAndSort_LIST=@"/api/item/spu/filter/cate";
#pragma mark--------------筛选内容--------------
static NSString *const API_ScreenAndSort_LIST=@"/api/item/attr/list/cate";


#pragma mark--------------分类搜索框内容--------------
static NSString *const API_SEARCHRECOM=@"/api/item/search/recom";

#pragma mark-------------种福田------------------
static NSString *const API_ZFT_LIST=@"/api/event/customer/eventList";
#pragma mark-------------活动墙列表------------------
static NSString *const API_ACTWALL_LIST=@"/api/event/customer/getWallsById";
#pragma mark-------------供养选座------------------
static NSString *const API_CHOOSEPOS_LIST=@"/api/event/customer/getNodesByWallId";
#pragma mark-------------锁座------------------
static NSString *const API_COMFIRM_SEAT_LIST=@"/api/event/customer/lockNode";
#pragma mark-------------解除锁座------------------
static NSString *const API_CANCEL_SEAT_LIST=@"/api/event/customer/unLockNode";
#pragma mark-------------锁单------------------
static NSString *const API_COMFIRM_ORDER_LIST=@"/api/event/customer/supportOrderCreate";
#pragma mark-------------解除锁单------------------
static NSString *const API_CANCEL_ORDER_LIST=@"/api/event/customer/cancelOrder";
#pragma mark-------------供养支付------------------
static NSString *const API_SEAT_PAY_LIST=@"/api/event/customer/supportOrderPay";
#pragma mark-------------我的功德------------------
static NSString *const API_MINE_HONOUR_LIST=@"/api/event/customer/history";



#pragma mark--------------首页商品--------------
//static NSString *const API_HOMESHOP_LIST=@"/api/item/home";
static NSString *const API_HOMESHOP_LIST=@"/api/index/customer/index";

#pragma mark-------------首页请求跳转------------
static NSString *const API_HOMESHOP_REQUEST_CLASSFY = @"/api/item/cateSearch";

#pragma mark--------------商品详情--------------
static NSString *const API_SHOPDETAIL_LIST=@"/api/item/spu/detail";
#pragma mark--------------商品添加收藏--------------
static NSString *const API_SHOPADDCOLLECT=@"/api/member/wish/add";

#pragma mark--------------商品删除收藏--------------
static NSString *const API_SHOPREMOVECLT=@"/api/member/wish/remove";
#pragma mark--------------我的收藏列表--------------
static NSString *const API_COLLOCTLIST=@"/api/member/wish/page";
#pragma mark--------------我的专享--------------
static NSString *const MYSELFSHARE=@"/api/member/my/vip/page";

#pragma mark--------------我的专享删除--------------
static NSString *const MYSELFSHAREDELETE=@"/api/member/my/vip/remove";

#pragma mark--------------客服信息--------------
static NSString *const CHATINFO=@"/api/member/chat/merchant";


#pragma mark--------------商品选购--------------
static NSString *const API_SHOPBUY_LIST=@"/api/item/spu/list";
#pragma mark--------------商品添加购物车--------------
static NSString *const API_ADDSHOPCAR_LIST=@"/api/shopping/cart/add";
#pragma mark--------------商品立即购买--------------
static NSString *const API_SHOPBUYNOW_LIST=@"/api/shopping/order/settle/item";
#pragma mark--------------商品规格之后的接口--------------
static NSString *const API_SHOPSPUID=@"/api/item/spu/pick";

#pragma mark--------------商品删除购物车--------------
static NSString *const API_REMOVESHOPCAR_LIST=@"/api/shopping/cart/remove";
#pragma mark--------------购物车商品数量--------------
static NSString *const API_ShopCarNumber_LIST=@"/api/shopping/cart/change";

#pragma mark--------------购物车结算--------------
static NSString *const API_ShopOrderSettle_LIST=@"/api/shopping/order/settle/cart";
#pragma mark--------------购物车提交订单--------------
static NSString *const API_SubmitOrder=@"/api/shopping/order/create/cart";
#pragma mark--------------立即购买提交订单--------------
static NSString *const API_SubmitOrderNow=@"/api/shopping/order/create/item";
#pragma mark--------------支付--------------
static NSString *const API_OrderPAY=@"/api/shopping/order/pay";
#pragma mark--------------支付--------------
static NSString *const API_ConfirmPAY=@"/api/shopping/order/paid";


#pragma mark--------------购物车--------------
static NSString *const API_SHOPCARLIST_LIST=@"/api/shopping/cart/page";

#pragma mark--------------订单列表--------------
static NSString *const API_ORDERLIST_LIST=@"/api/shopping/order/page";
#pragma mark--------------订单列表--------------

static NSString *const API_ORDERDETAIL_LIST=@"/api/shopping/order/detail";
#pragma mark--------------订单取消--------------
static NSString *const API_CANCLEORDER_LIST=@"/api/shopping/order/close";
#pragma mark--------------订单取消理由--------------
static NSString *const API_CANCLEORDERRESON_LIST=@"/api/shopping/order/reason";

#pragma mark--------------确认收货--------------
static NSString *const API_RECEIVESHOP=@"/api/shopping/order/receive";

#pragma mark--------------再此购买--------------
static NSString *const API_BUYAGAIN=@"/api/shopping/cart/batchAdd";


static NSString* const BATCHPAY=@"/api/shopping/order/agent/pay/batch";


#pragma mark--------------删除订单--------------
static NSString *const API_REMOVEORDER=@"/api/shopping/order/remove";
#pragma mark--------------订单统计--------------
static NSString *const API_ORDERCOUNT=@"/api/shopping/order/count";

#pragma mark--------------关于售后--------------

#pragma mark--------------买家申请换货--------------
static NSString *const API_APPLYSALESHUAN=@"/api/shopping/aftersales/apply/huan";


#pragma mark--------------退货--------------
static NSString *const API_APPLYSALESTUN=@"/api/shopping/aftersales/apply/tui";


#pragma mark--------------补货--------------
static NSString *const API_APPLYSALESBU=@"/api/shopping/aftersales/apply/bu";


#pragma mark--------------买家查询售后详情--------------
static NSString *const API_APPLYSALESDETAIL=@"/api/shopping/aftersales/detail";


#pragma mark--------------撤销售后--------------
static NSString *const API_APPLYSALESCANCLE=@"/api/shopping/aftersales/repeal";


#pragma mark--------------买家寄回--------------
static NSString *const API_APPLYSALESSEND=@"/api/shopping/aftersales/send";


#pragma mark--------------收到货--------------
static NSString *const API_APPLYSALESRECIVE=@"/api/shopping/aftersales/receive";


#pragma mark--------------售后查询--------------
static NSString *const API_APPLYSALESPAGE=@"/api/shopping/aftersales/page";


#pragma mark--------------提现相关----------------
//账户详情
static NSString* const ACCOUNTDETAIL=@"/api/capital/account/agent/detail";

static NSString* const CHECKBANKINFO=@"/api/member/bank/detail";


//账户明细
static NSString* const BILLDETAIL=@"/api/capital/account/agent/history";

//提现详情
static NSString* const APPLYCASH=@"/api/capital/cash/user/apply";

//设置支付密码
static NSString* const SETCCOUNT=@"/api/capital/account/password/user/forget";
//设置支付密码
static NSString* const MODIFY=@"/api/capital/account/password/user/set";


static NSString* const RECHARGE=@"/api/capital/account/recharge";

static NSString* const Requestpayment=@"/api/shopping/order/pay";

#pragma mark--------------银行相关----------------
//顾客
static NSString* const BINDBANKCARD=@"/api/member/bank/user/bind";
static NSString* const UNBINDBANKCARD=@"/api/member/bank/user/unbind";

static NSString* const BANKCARDLIST=@"/api/member/bank/user/list";

//检测版本   /api/download/ios/version

static NSString* const CHECKVERSION=@"/api/download/ios/version";
#pragma mark--------------祈愿相关----------------
//我的心愿列表
static NSString* const ownerlist=@"/api/pray/search/userpray/ownerlist";
//祈愿的类别
static NSString* const buddhaattrlist=@"/api/pray/search/buddhaattr/list";
//祈愿的添加
static NSString* const userprayadd=@"/api/pray/search/userpray/add";
//祈愿的提交
static NSString* const cateTree=@"/api/item/cate/ownerBuddha/cateTree";

//祈愿的匹配
static NSString* const praycateTree=@"/api/item/search/pray";
//祈愿的修改
static NSString* const userpraychange=@"/api/pray/search/userpray/change";

//已买的商品列表
static NSString* const prayBuddhaSku=@"/api/pray/search/prayBuddhaSku";
//心愿墙
static NSString* const userpraylist=@"/api/pray/search/userpray/list";

#pragma mark--------------附近购相关----------------
//附近门店列表
static NSString* const NearAgent=@"/api/user/agentStore/nearAgent";
//确认到店
static NSString* const NearReach=@"/api/shopping/order/nearby/reach";


#endif /* CommonHeader_h */
